Vcenter NamespaceManagement InfrastructurePolicies SetSpec
The Vcenter NamespaceManagement InfrastructurePolicies SetSpec schema defines the specification for modifying policies.
This schema was added in vSphere API 9.1.0.0.
{
"description": "string",
"compute_policy_id": "string",
"enforcement_mode": "string",
"match": {
"op": "string",
"match": [
"Vcenter NamespaceManagement InfrastructurePolicies MatchSpec Object"
],
"workload": {
"guest": {
"guest_id": {
"op": "string",
"value": "string"
},
"guest_family": {
"op": "string",
"value": "string"
}
},
"labels": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
],
"kind": "string"
}
}
}
Specifies the desired description of the policy.
This property was added in vSphere API 9.1.0.0.
If missing or null, no description is provided.
Specifies the ID of the underlying vSphere Compute Policy, if one is associated with this object.
This property was added in vSphere API 9.1.0.0.
If missing or null, no policy ID is specified.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.vcenter.compute.Policy. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.vcenter.compute.Policy.
Specifies how the policy is enforced.
For more information see: Vcenter NamespaceManagement InfrastructurePolicies EnforcementMode.
This property was added in vSphere API 9.1.0.0.
If missing or null, defaults to Vcenter NamespaceManagement InfrastructurePolicies EnforcementMode.MANDATORY.
Used to match workloads to which this policy should be applied.
This property was added in vSphere API 9.1.0.0.
If missing or null, policy applies to all workloads.